import  {request} from "./request";
//添加地址
export function ADDaddress(params) {
    return request({
        url:'/api/address',
        method:'post',
        params
    })
   }
//获取地址列表
export function Getaddress() {
    return request({
        url:'/api/address',
        method:'get',
    })
}
//编辑地址
export function EditAddress(id,params) {
    return request({
        url:`/api/address/${id}`,
        method:'put',
        params
    })
}
//地址详情
export function getAddressDetail(id) {
    return request({
        url:`/api/address/${id}`,
        method:'get',
    })
}
//删除地址
export function DeleteAddress() {
    return request({
        url:`/api/address/${id}`,
        method:'delete'
    })
}
